package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.SysUserSign;
import com.ruoyi.business.vo.SysUserSignVo;
import com.ruoyi.business.mapper.SysUserSignMapper;
import com.ruoyi.business.service.ISysUserSignService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户签名信息Service业务层处理
 *
 * @author Tellsea
 * @date 2025-03-25
 */
@Service
public class SysUserSignServiceImpl extends ServiceImpl<SysUserSignMapper, SysUserSign> implements ISysUserSignService {

    @Override
    public TableDataInfo<SysUserSignVo> queryList(SysUserSignVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<SysUserSignVo> queryAll(SysUserSignVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public SysUserSignVo queryById(Long userId) {
        return this.baseMapper.queryById(userId);
    }
}
